package com.sc.nft.entity.dto;

import cn.hutool.core.date.DateTime;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
public class ReportSaveDTO {

    @ApiModelProperty(value = "类型")
    private Integer type;

    @ApiModelProperty(value = "数据值")
    private String dataValue;

    @ApiModelProperty(value = "数据描述")
    private String describe;

    @ApiModelProperty(value = "统计时间")
    private Date statisticalTime;

    public ReportSaveDTO(Integer type,String describe, String dataValue, Date statisticalTime) {
        this.type = type;
        this.dataValue = dataValue;
        this.describe = describe;
        this.statisticalTime = statisticalTime;
    }
    public ReportSaveDTO(Integer type,String describe, String dataValue) {
        this.type = type;
        this.dataValue = dataValue;
        this.describe = describe;
        this.statisticalTime = DateTime.now();
    }

}
